﻿@model TuanAnhPersonalWeb.Models.vw_aspnet_MembershipUsers
@{
    ViewBag.Title = "ResetPw";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

  @using (Html.BeginForm()) {
        @Html.ValidationSummary("ERROR") 
    <h2>ResetPw</h2>
    <table>
    <tr>
   <td>ENTER PASSWORD</td><td>@Html.TextBox("password")</td>
   @Html.Hidden("password") 
    </tr>

    </table>
           <p>
            <input type="submit" value="Reset" onclick="return chk();" />
             <input type="button" value="Cancel" onclick="location.href='@Url.Action("Index")'" />
            </p>
            } 

<script type="text/javascript">
    function chk() {
        var conf = confirm("Are You Sure Want To Reset Password?");
        if (conf) {
            var selected = document.getElementById("password");
            var i = selected.value.length;
            if (i < 6) {
                alert("PASSWORD REQUIRE 6 CHARACTER MINIMUM");
                return false;
            }
            else {
                return true;
            }
        }
        else {
            return false;
        }
    }
</script>